package com.peanut.boot.mapper.stuendet;


import com.peanut.boot.entiity.MybatisPulsUser;
import com.peanut.boot.entiity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentMapper {

    List<Student> getStudentList(Long id);
    //注解实现
    @Select("SELECT * FROM STUDENT WHERE ID NOT IN (${id})")
    List<Student> getNoteStudentlist(Long id);

    //添加一个用户
    public Long addStudent(MybatisPulsUser user);
}
